import request from '@/utils/request'

// 查询入库申请单明细列表
export function listDetail(query) {
  return request({
    url: '/invoice/proStockApplyDetail/list',
    method: 'get',
    params: query
  })
}

// 查询入库申请单明细详细
export function getDetail(id) {
  return request({
    url: '/invoice/proStockApplyDetail/' + id,
    method: 'get'
  })
}

// 新增入库申请单明细
export function addDetail(data) {
  return request({
    url: '/invoice/proStockApplyDetail',
    method: 'post',
    data: data
  })
}

// 修改入库申请单明细
export function updateDetail(data) {
  return request({
    url: '/invoice/proStockApplyDetail',
    method: 'put',
    data: data
  })
}

// 删除入库申请单明细
export function delDetail(id) {
  return request({
    url: '/invoice/proStockApplyDetail/' + id,
    method: 'delete'
  })
}
